<%--
  Created by IntelliJ IDEA.
  User: Dell
  Date: 2021/11/16
  Time: 13:26
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%String path = request.getContextPath();%>
<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>后台系统管理</title>
    <meta name="renderer" content="webkit|ie-comp|ie-stand">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width,user-scalable=yes, minimum-scale=0.4, initial-scale=0.8,target-densitydpi=low-dpi" />
    <meta http-equiv="Cache-Control" content="no-siteapp" />

    <link rel="stylesheet" href="<%=path %>/web/index/css/font.css">
    <link rel="stylesheet" href="<%=path %>/web/index/css/xadmin.css">
    <script type="text/javascript" src="https://cdn.bootcss.com/jquery/3.2.1/jquery.min.js"></script>
    <script src="<%=path %>/web/index/lib/layui/layui.js" charset="utf-8"></script>
    <script type="text/javascript" src="<%=path %>/web/index/js/xadmin.js"></script>

<script type="text/javascript">

    function check_msg(){
        var msg = '${msg}';
        if(msg=='error'){
            alert("系统提示：您的账号或者密码不正确，导致登录失败！一分钟内同一个账号密码填错三次，账号会被冻结！");
        }
        if(msg=="success"){
            window.location.href = "index";
        }
        if (msg=="账户被锁定，请联系管理员"){
            alert("账户被锁定，请联系管理员");
            window.location.href = "lock_users?loginname=${na}";

        }


    }

</script>


</head>
<body class="login-bg" onload="check_msg()">

<div class="login">
    <div class="message">${d.dicdes}</div>
    <div id="darkbannerwrap"></div>

    <form method="post" action="managers_check_login" class="layui-form" >
        <input name="loginname" id="loginname" placeholder="用户名"  type="text" lay-verify="required" class="layui-input" >
        <hr class="hr15">
        <input name="password" id="password" lay-verify="required" placeholder="密码"  type="password" class="layui-input">
        <hr class="hr15">
        <input value="登录" lay-submit lay-filter="login" style="width:100%;" type="submit">
        <hr class="hr20" >
    </form>
</div>



<!-- 底部结束 -->

</body>
</html>
